The setgiovector() function registers an interrupt service function for a GIO-bus device interrupt with the kernel's interrupt dispatcher.
Synopsis
setgiovector(int level, int slot, long (*func)
(long),int arg)
Arguments
level
Specifies which interrupt is used by the device. For GIO boards, this must always be GIO_INTERRUPT_1, since GIO_INTERRUPT_0 and GIO_INTERRUPT_2 are used by the graphics system.
slot
Specifies which physical slot the GIO-bus board is plugged into; must be either GIO_SLOT_0 or GIO_SLOT_1.
func
Pointer to the interrupt service routine called when the associated interrupt occurs. Note that func may be called even when there is no pending interrupt from the particular slot specified, in which case it should simply return. The interrupt handler therefore needs to be able to determine when its device is actually interrupting and when it is not, in a timely, nondestructive manner.
arg
Passed to the interrupt service routine when it is called and may contain any value. The interrupt service routine is called with the processor interrupt mask set to disable further interrupts from the device.